package javabase.schoolwork.day6_1to3;

/**
 * @author fance
 * @date 2018/6/1 21:26
 */
public class Test {
    public static void main(String[] args) {
       /* CPU cpu = new CPU("AMD",520,"3Ghz");
        HardDisk hardDisk = new HardDisk("西捷",3360,"500G");
        Screen screen = new Screen("三星",202,"1024*1024");
        KeyBoard keyBoard = new KeyBoard("罗技",1000);
*/
        /*Computer computer = new Computer("HP",6120,cpu,hardDisk,screen,keyBoard);
        System.out.println(computer);
        computer.getCpu().cal();
        computer.getHardDisk().read();
        computer.getHardDisk().write();
        computer.getScreen().display();
        computer.getKeyBoard().in();*/

     /*   ComputerRunner computerRunner = new ComputerRunner("HP",6120,cpu,hardDisk,screen,keyBoard);
        computerRunner.in(1);
        computerRunner.save(3);
        computerRunner.display(2);*/

     /*USBImpl usb = new USBImpl();
     VGAImpl vga = new VGAImpl();
        System.out.println(usb.num);
        usb.in();
        usb.out();
        System.out.println(vga.num);
        vga.in();
        vga.out();*/

     /*MyTime myTime = new MyTime(1,45,30);
     myTime.addHour(2);
     myTime.addMinute(15);
     myTime.addSecond(2);
        System.out.println(myTime);
        myTime.subMinute(1);
        System.out.println(myTime);*/

    /* GoodDoor goodDoor = new GoodDoor();
     goodDoor.openDoor();
     goodDoor.bulletProof();*/

   /* MyList<Integer> myList = new MyList<>();
    ArrayList<Integer> list = new ArrayList<>();
    long st = System.currentTimeMillis();
        for (int i = 0; i < 10000; i++) {
            myList.add(i);
            list.add(i);
            0 : 125
        }
        System.out.println(System.currentTimeMillis() - st);*/

       /* myList.printList();
        myList.get(1);
        System.out.println(myList.length());
        myList.remove(1);
        myList.printList();

        System.out.println(myList.length());*/

       /*ATM atm = new ATM(new Bank("招商银行"));
       atm.menu();*/
    }
}
